home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / archie38_1.lha / archie-1.4 / msdos / cutcp.h next >
C/C++ Source or Header  |  1995-01-04  |  1KB  |  34 lines

  1. /* cutcp.h -- defs for cutcp code */
  2.  
  3.  
  4. int         netlisten(unsigned int port);
  5. struct machinfo *Shostlook(char *name);
  6. int         Sdomain(char *name);
  7. struct machinfo *Sgethost(char *name);
  8. struct machinfo *Slookip(unsigned long *address);
  9. void        netgetftp(unsigned int array[], unsigned int port);
  10. int         netopen(unsigned long *address, unsigned int port);
  11. int         Snetopen(struct machinfo *m, unsigned int port);
  12. int        netqlen(int handle);
  13. int        netroom(int handle);
  14. int        netread(int pnum, unsigned char *buffer, unsigned int n);
  15. int        netwrite(int pnum, unsigned char *buffer, unsigned int n);
  16. int        netest(int pnum);
  17. int        netpush(int pnum);
  18. void        netulisten(unsigned int portnum);
  19. int        netusend(unsigned long *address, unsigned destport, 
  20.             unsigned sourceport, unsigned char *buffer, int count);
  21. int        neturead(unsigned char    *buffer);
  22. struct machinfo *Slooknum(int pnum);
  23. int        Snetinit();
  24. int        Shostfile(char *name);
  25. int        netshut();
  26. int        Sgetevent(int classes, int *clss, int *data);
  27. int        netclose(int pnum);
  28. unsigned int    intswap(unsigned int val);
  29. unsigned long    n_clicks(void *p);
  30. void        Stask();
  31.  
  32. #define    ntohs(a)    (intswap(a))
  33. #define    htons(a)    (intswap(a))
  34.